<?php
namespace app\models\request;

use app\components\CodeValidator;
use yii\base\Model;

class ReqLogin extends Model
{

    private $phone;

    private $password;

    /**
     * @return mixed
     */
    public function getPhone()
    {
        return $this->phone;
    }

    /**
     * @param mixed $phone
     */
    public function setPhone($phone)
    {
        $this->phone = $phone;
    }

    /**
     * @return mixed
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * @param mixed $password
     */
    public function setPassword($password)
    {
        $this->password = $password;
    }





    public function rules()
    {
        return [
            [['password', 'phone'], 'required'],
        ];
    }


}